package com.ee.bruscar.configuration.maker;

import java.util.ArrayList;

public class DefaultListMaker implements Maker
{
	private Class<?> listReturnType;
	
	public DefaultListMaker(Class<?> listReturnType)
	{
		this.listReturnType = listReturnType;
	}

	public Object make()
	{
		ArrayList result = new ArrayList();
		
		for( int i = 0 ; i < 10 ; i++ )
		{
			Object item = new DefaultMaker( listReturnType ).make() ;
			result.add( item );
		}
		return result;
	}

}
